package com.panfeng.xcloud.boss.provider.assets.dao.mapper;

import com.panfeng.xcloud.dao.assets.entity.UserWallet;
import com.panfeng.xcloud.dao.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

public interface UserWalletMapperExt extends BaseMapper<UserWallet> {

    UserWallet queryWalletIdByType(UserWallet record);

    void addCandyToUser(@Param("recommendCoinUserId") String recommendCoinUserId,@Param("unlockPrice") BigDecimal unlockPrice);

    void takeOutCandyToUser(@Param("userId") String userId, @Param("unlockPrice") BigDecimal unlockPrice);
}